.nav-bar-shadow {
  &:global(.van-nav-bar) {
    box-shadow: 0 0 5px 0 #ccc;
  }
}

.cateye {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  .cateye-container {
    // height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
    .cateye-viewport {
      width: 100%;
      border-radius: 8px;
      box-shadow: 0 0 8px 0 #ccc;
      overflow: hidden;
      .cateye-viewport-image {
        width: 100%;
        height: 0;
        padding-top: calc(100% * 2684 / 3590);
        background-color: #000;
        position: relative;
        img {
          position: absolute;
          top: 0;
          left: 0;
          bottom: 0;
          width: 100%;
        }
      }
      .cateye-viewport-info {
        height: 72px;
        padding: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        h4 {
          margin: 0;
        }
        .cateye-viewport-info-left {
          flex: 1;
          p {
            margin: 0;
            padding: 8px 8px 0;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            display: flex;
            // flex-direction: column;
            align-items: center;
            img {
            }
          }
        }

        .cateye-viewport-info-right{
          padding: 16px 8px 0 0;
          display: flex;
          align-items: center;
          .cateye-viewport-info-emotion {
            width: 48px;
            margin-left: 24px;
          }
        }
      }
    }
  }
  .cateye-dev {
    width: calc(100% - 64px);
    padding: 32px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    img {
      width: 36px;
    }
    .cateye-dev-container {
      // padding: 15px;
      // border-radius: 5px;
      display: flex;
      flex-direction: column;
      align-items: center;
      > img {
        width: 30px;
        &:first-child {
          margin-bottom: 30px;
        }
      }
    }
    > .cateye-dev-line {
      position: relative;
      flex: 1;
      height: 60px;
      margin: 0 4px;
      display: flex;
      flex-direction: column;
      align-items: center;
      > i {
        height: 0;
        border-top: 2px dashed #cdcdcd;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        &.cateye-dev-line-lwir {
          top: 100%;
        }
        &.cateye-dev-line-light {
          top: 100%;
        }
        &.cateye-dev-line-active {
          border-color: #1afa29;
        }
      }
    }
    > span {
      position: absolute;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      color: red;
      font-size: 12px;
    }
  }
  .cateye-lock {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 8px 0 #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 30px;
    > * {
      transform: translateY(-6px);
    }
  }
  .cateye-authorize-numbers {
    // box-shadow: 0px 0px 2px 0 #ccc;
    width: 100%;
    h4 {
      height: 36px;
      line-height: 36px;
      margin-bottom: 0;
      text-align: center;
      position: relative;
      > * {
        position: absolute;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
      }
      // input {
      //   width: 60px;
      //   height: 26px;
      //   position: absolute;
      //   top: 50%;
      //   right: 16px;
      //   transform: translateY(-50%);
      //   overflow: hidden;
      // }
    }
  }
}
.model {
  :global(.van-dialog__header) {
    padding: 16px 0;
    color: #fff;
    background: #20a5de;
  }
  .model-list {
    height: 160px;
    margin-bottom: 24px;
    overflow: auto;
  }
}
.model-input {
  width: 60px;
  height: 60px;
  overflow: hidden;
  position: relative;
  background: #fff url(../../assets/add-member.png) no-repeat 50% 50%;
  background-size: 40px;
  > * {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
  }
  input {
    opacity: 0;
    z-index: 999;
  }
}
